Learn R Programming

medfate (version 0.8.2)

Vertical profiles: Vertical profiles

Description

Functions to generate vertical profiles generated by an input forest object.

Usage

vprofile_leafAreaDensity(x, SpParams = NULL, z = NULL, gdd = NA, 
                         byCohorts = FALSE, bySpecies = FALSE, draw = TRUE, 
                         xlim = NULL)
vprofile_rootDistribution(x, SpParams, d = NULL,  bySpecies = FALSE, draw = TRUE, 
                          xlim = NULL)
vprofile_fuelBulkDensity(x, SpParams, z = NULL, gdd = NA, draw = TRUE, 
                         xlim = NULL)
vprofile_PARExtinction(x, SpParams, z = NULL, gdd = NA, draw = TRUE,
                       xlim = c(0,100))
vprofile_SWRExtinction(x, SpParams, z = NULL, gdd = NA, draw = TRUE,
                       xlim = c(0,100))
vprofile_windExtinction(x, SpParams, wind20H, z = NULL,  gdd = NA, draw = TRUE,
                        xlim = NULL)

Arguments

x

An object of class forest

SpParams

A data frame with species parameters (see SpParamsMED).

z

A numeric vector with height values.

d

A numeric vector with soil layer widths.

gdd

Growth degree days.

byCohorts

Separate profiles for each cohort.

bySpecies

Aggregate cohort profiles by species.

wind20H

The value of measured wind speed at 6 m = 20ft (in m/s).

draw

Logical flag to indicate that a plot is desired.

xlim

Limits of the x-axis.

Value

A numeric vector with values measured at each height. Units depend on the profile function:

  • vprofile_leafAreaDensity: Cumulative LAI (m2/m2) per height bin.

  • vprofile_fuelBulkDensity: Fuel bulk density (kg/m3) per height bin.

  • vprofile_PARExtinction: Percent of photosynthetically active radiation (%) corresponding to each height.

  • vprofile_SWRExtinction: Percent of shortwave radiation (%) corresponding to each height.

  • vprofile_windExtinction: Wind speed (m/s) corresponding to each height.

See Also

forest

Examples

Run this code
# NOT RUN {
#Default species parameterization
data(SpParamsMED)

#Load example plot plant data
data(exampleforest)

vprofile_leafAreaDensity(exampleforest, SpParamsMED)
vprofile_fuelBulkDensity(exampleforest, SpParamsMED)

vprofile_PARExtinction(exampleforest, SpParamsMED)
vprofile_SWRExtinction(exampleforest, SpParamsMED)

vprofile_windExtinction(exampleforest, SpParamsMED, 20)

# }

Run the code above in your browser using DataLab